// 导入request, 用于发送axios请求
import request from '@/utils/request'

/**
 * 获取患者分类列表
 */
export const patientClassifyListAPI = (data) =>
  request.get('/patientClassify/list', {
    params: data
  })

/**
 * 新增患者分类
 */
export const patientClassifySaveAPI = (data) =>
  request.post('/patientClassify/save', data)

/**
 * 根据id删除患者分类
 */
export const patientClassifyDeleteAPI = (id) =>
  request.delete(`/patientClassify/delete/${id}`)

/**
 * 获取全部患者分类
 */
export const patientClassifyAllListAPI = () =>
  request.get('/patientClassify/allList')
